<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Catch&#39;em all:  Fichier source de carte.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="BLACK2.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catch&#39;em all
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple Blackjack game.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('carte_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Énumérations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">carte.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="carte_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef CARTE_H_INCLUDED</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CARTE_H_INCLUDED</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;assert.h&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">   13</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {AUCUNE, CARREAU, COEUR, PIQUE, TREFLE} <a class="code" href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">enseigne</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">   15</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {ZERO, DEUX, TROIS, QUATRE, CINQ, SIX, SEPT, HUIT, NEUF, DIX, VALET, DAME, ROI, AS} <a class="code" href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">recto</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">/*static const recto const_cartes[] = {ZERO, DEUX, TROIS, QUATRE, CINQ, SIX, SEPT, HUIT, NEUF, DIX, VALET, DAME, ROI, AS};</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">static const enseigne const_couleurs[] = {AUCUNE, CARREAU, COEUR, PIQUE, TREFLE};</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">static const int const_valeurs[] = {0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11};*/</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structs_carte.html">   22</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_carte.html">sCarte</a></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">enseigne</a> couleur;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">recto</a> face;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;} <a class="code" href="struct_carte.html">Carte</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keywordtype">void</span> <a class="code" href="carte_8c.html#a937f8021242ce059051b8c42ef950c45">creerCarte</a>(<a class="code" href="struct_carte.html">Carte</a>*);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keywordtype">int</span> <a class="code" href="carte_8c.html#a0b492c0de203b5531367014c1dd0c23b">getValeurCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html">Carte</a>*);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<a class="code" href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">recto</a> <a class="code" href="carte_8c.html#ac0f214a0b406697e9938e94a635fe8e8">getFaceCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html">Carte</a>*);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<a class="code" href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">enseigne</a> <a class="code" href="carte_8c.html#ac27b2129d7ede3f95d9246672e35237b">getCouleurCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html">Carte</a>*);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">void</span> <a class="code" href="carte_8c.html#ab10863b2450b4a176c6cc6a1f9dfd640">setCouleurCarte</a>(<a class="code" href="struct_carte.html">Carte</a>*, <a class="code" href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">enseigne</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">void</span> <a class="code" href="carte_8c.html#a9c42885f3b329b70fd833402af2a32b0">setFaceCarte</a>(<a class="code" href="struct_carte.html">Carte</a>*, <a class="code" href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">recto</a>);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keywordtype">void</span> <a class="code" href="carte_8c.html#ac1c7892f442c3487076608a2f7d1f101">afficherCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html">Carte</a>*);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="carte_8c_html_ac27b2129d7ede3f95d9246672e35237b"><div class="ttname"><a href="carte_8c.html#ac27b2129d7ede3f95d9246672e35237b">getCouleurCarte</a></div><div class="ttdeci">enseigne getCouleurCarte(const Carte *carte)</div><div class="ttdoc">Retourne la couleur d&amp;#39;une carte. </div><div class="ttdef"><b>Definition:</b> carte.c:67</div></div>
<div class="ttc" id="carte_8c_html_a937f8021242ce059051b8c42ef950c45"><div class="ttname"><a href="carte_8c.html#a937f8021242ce059051b8c42ef950c45">creerCarte</a></div><div class="ttdeci">void creerCarte(Carte *carte)</div><div class="ttdoc">Crée une Carte. </div><div class="ttdef"><b>Definition:</b> carte.c:8</div></div>
<div class="ttc" id="carte_8c_html_ab10863b2450b4a176c6cc6a1f9dfd640"><div class="ttname"><a href="carte_8c.html#ab10863b2450b4a176c6cc6a1f9dfd640">setCouleurCarte</a></div><div class="ttdeci">void setCouleurCarte(Carte *carte, enseigne couleur)</div><div class="ttdoc">Rempli le champ couleur d&amp;#39;une Carte. </div><div class="ttdef"><b>Definition:</b> carte.c:79</div></div>
<div class="ttc" id="carte_8c_html_a9c42885f3b329b70fd833402af2a32b0"><div class="ttname"><a href="carte_8c.html#a9c42885f3b329b70fd833402af2a32b0">setFaceCarte</a></div><div class="ttdeci">void setFaceCarte(Carte *carte, recto face)</div><div class="ttdoc">Rempli le champ face d&amp;#39;une Carte. </div><div class="ttdef"><b>Definition:</b> carte.c:85</div></div>
<div class="ttc" id="structs_carte_html"><div class="ttname"><a href="structs_carte.html">sCarte</a></div><div class="ttdef"><b>Definition:</b> carte.h:22</div></div>
<div class="ttc" id="carte_8c_html_ac1c7892f442c3487076608a2f7d1f101"><div class="ttname"><a href="carte_8c.html#ac1c7892f442c3487076608a2f7d1f101">afficherCarte</a></div><div class="ttdeci">void afficherCarte(const Carte *carte)</div><div class="ttdoc">affiche une carte </div><div class="ttdef"><b>Definition:</b> carte.c:91</div></div>
<div class="ttc" id="carte_8c_html_a0b492c0de203b5531367014c1dd0c23b"><div class="ttname"><a href="carte_8c.html#a0b492c0de203b5531367014c1dd0c23b">getValeurCarte</a></div><div class="ttdeci">int getValeurCarte(const Carte *carte)</div><div class="ttdoc">Retourne la valeur d&amp;#39;une Carte. Par rapport à sa face. </div><div class="ttdef"><b>Definition:</b> carte.c:15</div></div>
<div class="ttc" id="struct_carte_html"><div class="ttname"><a href="struct_carte.html">Carte</a></div></div>
<div class="ttc" id="carte_8h_html_aa749e5cdc131948337c7c50920398c83"><div class="ttname"><a href="carte_8h.html#aa749e5cdc131948337c7c50920398c83">enseigne</a></div><div class="ttdeci">enseigne</div><div class="ttdef"><b>Definition:</b> carte.h:13</div></div>
<div class="ttc" id="carte_8h_html_ad4b35b9a0851b59634551776fd90bc3f"><div class="ttname"><a href="carte_8h.html#ad4b35b9a0851b59634551776fd90bc3f">recto</a></div><div class="ttdeci">recto</div><div class="ttdef"><b>Definition:</b> carte.h:15</div></div>
<div class="ttc" id="carte_8c_html_ac0f214a0b406697e9938e94a635fe8e8"><div class="ttname"><a href="carte_8c.html#ac0f214a0b406697e9938e94a635fe8e8">getFaceCarte</a></div><div class="ttdeci">recto getFaceCarte(const Carte *carte)</div><div class="ttdoc">Retourne la face d&amp;#39;une Carte. </div><div class="ttdef"><b>Definition:</b> carte.c:73</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="carte_8h.html">carte.h</a></li>
    <li class="footer">Généré le Dimanche Décembre 15 2013 18:27:49 pour Catch&#39;em all par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
